from django.http import HttpResponse
from django.shortcuts import render

from load.models import Person


# Create your views here.
def load_view(request):
    if request.method=='GET':
        return render(request,'load.html')
    elif request.method=='POST':
        wj=request.FILES['wj']
        person=Person.objects.create(myfile=wj)
        return HttpResponse("上传成功!")